package org.example.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Update;
import org.example.system.model.entity.Tenant;

public interface TenantMapper extends BaseMapper<Tenant> {

    @Delete("delete from biz_tenant where id = #{id}")
    int xiaohu(Integer id);

    @Update("update biz_tenant set deleted = 0 where id = #{id} and deleted =1")
    int jiefeng(Integer id);
}
